package com.linciping.copyres2project;

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationGroup;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.project.Project;
import org.apache.commons.codec.binary.Hex;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.MessageDigest;

public class Util {

    public static void showErrorNotification(String message, Project project) {
        NotificationGroup notificationGroup = new NotificationGroup("File Diff", NotificationDisplayType.TOOL_WINDOW, true);
        Notification notification = notificationGroup.createNotification(message, NotificationType.ERROR);
        notification.notify(project);
    }

    public static void showNotification(String message, Project project) {
        NotificationGroup notificationGroup = new NotificationGroup("File Diff", NotificationDisplayType.TOOL_WINDOW, true);
        Notification notification = notificationGroup.createNotification(message, NotificationType.INFORMATION);
        notification.notify(project);
    }
}
